﻿//*****************************************************************************
//** Project:PatternWell.PAC
//** Copyright 2011 PatternWell LLC
//** Revision History:
//** Version 1.0 - Initial Release
//*****************************************************************************
namespace PatternWell.PAC
{
    public interface IControlledModel<TModelContract> where TModelContract:class, IModelContract
    {
        /// <summary>
        /// Helper method that will assign a model to be managed by the controller.
        /// </summary>
        /// <remarks>
        /// You need to make sure the model is already been created before assigning it to the controller.
        /// </remarks>
        /// <param name="model">The instance of the model cast to the supported model resource interface supported by this controller.</param>
        void AttachModel(TModelContract model);
    }
}
